<?php

namespace App\Observers\Admin;

use App\Models\Category;


class CategoryObserver
{

    /**
     * Handle the Aprender "saved" event.
     *
     * @param  \App\Models\Category  $category
     * @return void
     */
    public function saved(Category $category)
    {
        $category->flushCache();
    }

    /**
     * Handle the Expert "deleted" event.
     *
     *@param  \App\Models\Category  $category
     * @return void
     */
    public function deleted(Category $category)
    {
        $category->flushCache();
    }
}
